package User;

import Operations.*;

import java.util.Scanner;

public class MormalUser extends User{
    public MormalUser(String name) {
        super(name);
        this.ioperations=new Ioperation[]{new exitbook(),new Findbook(),
                new Borrowedbook(),new Returnbook()};
    }

    @Override
    public int meau() {
            System.out.println(name+"欢迎来到图书小练习！");
            System.out.println("*******************************");
            System.out.println("****1.查找图书     2.借阅图书****");
            System.out.println("****3.归还图书     0.退出系统****");
            System.out.println("*******************************");
            System.out.print("请输入你的操作：>>");
            Scanner scanner=new Scanner(System.in);
            int choice=scanner.nextInt();
            return choice;
    }
}
